<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		
	</head>
	<body>
		<h1>XXXX-XX-XX-XX XX:XX:XX XXX</h1>
		
		<script type="text/javascript">
			var dayArray=["星期天","星期一","星期二"，"星期三"，"星期四"，"星期五"，"星期六"];
			function showDate(){
				let time=new Date();
				let year=time.getFullYear();
				let month=format(time.getMonth()+1);
				let day=time.getDate();
				let hour=time.getHours();
				let minite=time.getMinutes();
				let second=time.getSeconds();
				let week=dayArray[time.getDay()];
				let str=`${year}-${month}-${day} ${hour}:${minite}:${second} ${week}`;
				document.querySelector("h1").innerHTML=str;
			}
			function format(s){
				s<10? s="0"+s : s;
				return s;
			}
			setInterval(showDate,500);
		</script>
	</body>
</html>
